Skip to main content

FlowTrigger

The FlowTrigger class is responsible for triggering a flow within a workflow system. It manages the flow's project, parameters, starter user, and execution behavior.

Properties

NameDescription
CaptionThe caption dictionary representing localized captions for the flow object.
ProjectNameThe name of the project to which this flow trigger belongs.
FlowNameThe name of the flow associated with this trigger.
SourceThe source options for the flow trigger.
KeyA unique identifier for the workflow step.
ParentProcessIdThe ID of the parent process for this flow trigger.
NameName for the workflow step.
TriggeredProcessCountVariableThe variable to store the count of triggered processes.
StarterUserTypeThe type of the starter user (e.g., UserId or UserName).
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
ShowFlowHistoryDetermines whether to show the flow's history.
ParametersA dictionary of flow parameters associated with this flow trigger.
CachedDMObjectsThe cached document management objects related to the flow object.
TypeCodeThe type code associated with the flow object.
ProjectIdThe ID of the project to which this flow trigger belongs.
FlowIdThe ID of the flow associated with this trigger.
StarterUserThe user who starts the flow.

Constructors

NameDescription
FlowTrigger(name, workflowData, workflowCodeInstance)Constructor for the FlowTrigger class. Initializes a new instance of the FlowTrigger class.
FlowTrigger(name, workflowData, workflowCodeInstance)Constructor for the FlowTrigger class. Initializes a new instance of the FlowTrigger class.

Methods

NameDescription
SetParentProcessId(parentProcessId)Sets the parent process ID for this flow trigger.
GetParentProcessId()Returns the parent process ID if available, otherwise returns 0.
Execute(workflowUserContext, processResponse)Executes the flow trigger by resolving source data and starting the associated flow.
Initialize()Initializes the flow trigger. This method is an implementation of the abstract Initialize method from the base class.

Events

NameDescription
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.